<?php 
namespace Admin\Controller;

/**
 * 店铺控制器
 */
class ShopsController extends BaseController {
	/**
	 * 分页查询
	 */
	public function index() {
		$m = D('Admin/Shops');
		$page = $m->queryByPage();
		// dump($wd);
		$pager = new \Think\Page($page['total'],$page['pageSize']);// 实例化分页类 传入总记录数和每页显示的记录数
		$page['pager'] = $pager->show();
		$this->assign('Page',$page);
		$this->display("/shops/list");
	}








}
 ?>